package cn.ronghuanet.car.mapper;

import cn.ronghuanet.car.domain.CarResources;
import cn.ronghuanet.base.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiong
 * @since 2023-07-03
 */
public interface CarResourcesMapper extends BaseMapper<CarResources> {

    void deleteByCarId(Long carId);

    //void batchInsert(CarResourcesDTO dto);

    // 在mapper.java接口中,如果方法有两个及两个以上的参数,是必须加@Param的
    void batchInsert(@Param("carId") Long carId,@Param("list") List<CarResources> list);

    List<CarResources> getCarResourceByCarId(Long carId);
}
